# Presidential Negative Partisanship
## Benjamin S. Noble

## Table of Contents

### Analysis
- `pres-neg-part-replication-code.R` creates all tables and figures.
- `pres-neg-part-replication-code-log.html` log file of all code and output.

### Data
- `doc_lev_df.csv` speech/document-level data.
- `para_lev_df.csv` paragraph-level data.
- `sentiment-validation.csv` hand-coded paragraphs used to validate sentiment model.
- `table2_text.csv` text data needed to reproduce Table 2.
- `taps_merge.csv` TAPS survey responses for behavioral analysis.

### Misc
- `ggtheme_baselike.R` loads ggplot settings to replicate the plot formatting.
- `pnp-codebook.pdf` is the codebook for all variables used in the data sources.
- `pnp_readme.txt` (this file)

## Computing Environment
R Version: 4.1.2 (2021-11-01) 
Machine: Bens-MacBook-Pro-2.local x86_64 
Operating System: Darwin 24.5.0 Darwin Kernel Version 24.5.0: Tue Apr 22 19:54:49 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T6000 
Base Packages: stats graphics grDevices utils datasets methods base Other Packages: sessioninfo_1.2.2 lubridate_1.9.2 forcats_1.0.0 stringr_1.5.0 dplyr_1.1.2 purrr_1.0.1 readr_2.1.4 tidyr_1.3.0 tibble_3.2.1 tidyverse_2.0.0 kableExtra_1.3.4 stm_1.3.6 quanteda_3.2.4 modelsummary_1.3.0 marginaleffects_0.17.0 fixest_0.11.2 ggridges_0.5.4 ggrepel_0.9.3 ggplot2_3.4.4 